package com.ruike.alisurface.printer;

import android.graphics.Bitmap;

import java.util.List;

/**
 * Author：voodoo
 * CreateTime：2021/7/29 11:24
 * Description：小票订单
 */
public class OrderTicketBean {

    /**
     * data : {"deviceName":"24H自助售药","phoneNumber":"13777777777","payTime":"2021-07-27 14:10","orderId":"2021072714160100031372","totalPay":0.03,"cash":0.03,"medicalInsurance":0,"actualTotalPay":0.03,"isPrintExhort":false,"isPrintQrCode":true,"qrcodeDescribe":"2021072714160100031372","qrcode":"{\"order_id\":\"2021072714160100031372\"}","productBeans":[{"productName":"叔丁基锂","specification":"1.3M戊烷溶液","unitPrice":0.01,"number":1,"subtotal":0.01},{"productName":"叔丁基锂","specification":"1.3M戊烷溶液","unitPrice":0.02,"number":1,"subtotal":0.02}],"exhortBeans":[{"productName":"叔丁基锂","describe":"用途: 剂量: 服用方式: 备注: "},{"productName":"叔丁基锂","describe":"用途: 剂量: 服用方式: 备注: "}]}
     * code : 0
     * msg : success
     * sendData : 2021-07-30 11:53:03
     */

    private DataBean data;
    private int code;
    private String msg;
    private String sendData;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getSendData() {
        return sendData;
    }

    public void setSendData(String sendData) {
        this.sendData = sendData;
    }

    public static class DataBean {
        /**
         * deviceName : 24H自助售药
         * phoneNumber : 13777777777
         * payTime : 2021-07-27 14:10
         * orderId : 2021072714160100031372
         * totalPay : 0.03
         * cash : 0.03
         * medicalInsurance : 0
         * actualTotalPay : 0.03
         * isPrintExhort : false
         * isPrintQrCode : true
         * qrcodeDescribe : 2021072714160100031372
         * qrcode : {"order_id":"2021072714160100031372"}
         * productBeans : [{"productName":"叔丁基锂","specification":"1.3M戊烷溶液","unitPrice":0.01,"number":1,"subtotal":0.01},{"productName":"叔丁基锂","specification":"1.3M戊烷溶液","unitPrice":0.02,"number":1,"subtotal":0.02}]
         * exhortBeans : [{"productName":"叔丁基锂","describe":"用途: 剂量: 服用方式: 备注: "},{"productName":"叔丁基锂","describe":"用途: 剂量: 服用方式: 备注: "}]
         */

        private String deviceName;
        private String phoneNumber;
        private String payTime;
        private String orderId;
        private double totalPay;
        private double cash;
        private int medicalInsurance;
        private double actualTotalPay;
        private boolean isPrintExhort;
        private boolean isPrintQrCode;
        private String qrcodeDescribe;
        private String qrcode;

        private Bitmap  printImage;

        public Bitmap getPrintImage() {
            return printImage;
        }

        public void setPrintImage(Bitmap printImage) {
            this.printImage = printImage;
        }

        private List<ProductBeansBean> productBeans;
        private List<ExhortBeansBean> exhortBeans;


        @Override
        public String toString() {
            return "DataBean{" +
                    "deviceName='" + deviceName + '\'' +
                    ", phoneNumber='" + phoneNumber + '\'' +
                    ", payTime='" + payTime + '\'' +
                    ", orderId='" + orderId + '\'' +
                    ", totalPay=" + totalPay +
                    ", cash=" + cash +
                    ", medicalInsurance=" + medicalInsurance +
                    ", actualTotalPay=" + actualTotalPay +
                    ", isPrintExhort=" + isPrintExhort +
                    ", isPrintQrCode=" + isPrintQrCode +
                    ", qrcodeDescribe='" + qrcodeDescribe + '\'' +
                    ", qrcode='" + qrcode + '\'' +
                    ", productBeans=" + productBeans +
                    ", exhortBeans=" + exhortBeans +
                    '}';
        }

        public String getDeviceName() {
            return deviceName;
        }

        public void setDeviceName(String deviceName) {
            this.deviceName = deviceName;
        }

        public String getPhoneNumber() {
            return phoneNumber;
        }

        public void setPhoneNumber(String phoneNumber) {
            this.phoneNumber = phoneNumber;
        }

        public String getPayTime() {
            return payTime;
        }

        public void setPayTime(String payTime) {
            this.payTime = payTime;
        }

        public String getOrderId() {
            return orderId;
        }

        public void setOrderId(String orderId) {
            this.orderId = orderId;
        }

        public double getTotalPay() {
            return totalPay;
        }

        public void setTotalPay(double totalPay) {
            this.totalPay = totalPay;
        }

        public double getCash() {
            return cash;
        }

        public void setCash(double cash) {
            this.cash = cash;
        }

        public int getMedicalInsurance() {
            return medicalInsurance;
        }

        public void setMedicalInsurance(int medicalInsurance) {
            this.medicalInsurance = medicalInsurance;
        }

        public double getActualTotalPay() {
            return actualTotalPay;
        }

        public void setActualTotalPay(double actualTotalPay) {
            this.actualTotalPay = actualTotalPay;
        }

        public boolean isIsPrintExhort() {
            return isPrintExhort;
        }

        public void setIsPrintExhort(boolean isPrintExhort) {
            this.isPrintExhort = isPrintExhort;
        }

        public boolean isIsPrintQrCode() {
            return isPrintQrCode;
        }

        public void setIsPrintQrCode(boolean isPrintQrCode) {
            this.isPrintQrCode = isPrintQrCode;
        }

        public String getQrcodeDescribe() {
            return qrcodeDescribe;
        }

        public void setQrcodeDescribe(String qrcodeDescribe) {
            this.qrcodeDescribe = qrcodeDescribe;
        }

        public String getQrcode() {
            return qrcode;
        }

        public void setQrcode(String qrcode) {
            this.qrcode = qrcode;
        }

        public List<ProductBeansBean> getProductBeans() {
            return productBeans;
        }

        public void setProductBeans(List<ProductBeansBean> productBeans) {
            this.productBeans = productBeans;
        }

        public List<ExhortBeansBean> getExhortBeans() {
            return exhortBeans;
        }

        public void setExhortBeans(List<ExhortBeansBean> exhortBeans) {
            this.exhortBeans = exhortBeans;
        }

        public static class ProductBeansBean {
            /**
             * productName : 叔丁基锂
             * specification : 1.3M戊烷溶液
             * unitPrice : 0.01
             * number : 1
             * subtotal : 0.01
             */

            private String productName;
            private String specification;
            private double unitPrice;
            private int number;
            private double subtotal;

            public String getProductName() {
                return productName;
            }

            public void setProductName(String productName) {
                this.productName = productName;
            }

            public String getSpecification() {
                return specification;
            }

            public void setSpecification(String specification) {
                this.specification = specification;
            }

            public double getUnitPrice() {
                return unitPrice;
            }

            public void setUnitPrice(double unitPrice) {
                this.unitPrice = unitPrice;
            }

            public int getNumber() {
                return number;
            }

            public void setNumber(int number) {
                this.number = number;
            }

            public double getSubtotal() {
                return subtotal;
            }

            public void setSubtotal(double subtotal) {
                this.subtotal = subtotal;
            }

            @Override
            public String toString() {
                return "ProductBeansBean{" +
                        "productName='" + productName + '\'' +
                        ", specification='" + specification + '\'' +
                        ", unitPrice=" + unitPrice +
                        ", number=" + number +
                        ", subtotal=" + subtotal +
                        '}';
            }
        }

        public static class ExhortBeansBean {
            /**
             * productName : 叔丁基锂
             * describe : 用途: 剂量: 服用方式: 备注:
             */

            private String productName;
            private String describe;

            public String getProductName() {
                return productName;
            }

            public void setProductName(String productName) {
                this.productName = productName;
            }

            public String getDescribe() {
                return describe;
            }

            public void setDescribe(String describe) {
                this.describe = describe;
            }

            @Override
            public String toString() {
                return "ExhortBeansBean{" +
                        "productName='" + productName + '\'' +
                        ", describe='" + describe + '\'' +
                        '}';
            }
        }
    }
}
